﻿#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = 0);
    ~Widget();

private:
    QString getMachineCode();
    void setCodeToTxt(const QString strMachineCode);
    QString getWMIHWInfo(int HDtype);

    QString getHostMac(); // 获取MAC地址
    QString getDiskSerial(); // 获取硬盘序列号

private:
    enum E_HwInfoType
    {
        MacAddr = 0,        //原生网卡地址
        DiskDriverSN,       //硬盘序列号
        BaseBoardSN,        //主板序列号
        ProcessorID,        //处理器ID
        BIOSSN,             //BIOS序列号
        BaseBoardProduct,   //主板型号
        BIOSUUID,           //BIOS的UUID
        iMacUUID            //iMac的硬件UUID
    };
};

#endif // WIDGET_H
